@tool
extends EditorInspectorPlugin

var ScriptOpenEditor = preload("res://addons/hanframe/edit/script_holder.gd")

var NodeTagEditor = preload("res://addons/hanframe/edit/tag_holder.gd")
var op_node:Node
var is_folded = true

func _can_handle(object):
	# 处理所有对象，实际使用时可以添加过滤条件
	return true

func _parse_begin(object: Object) -> void:
	#if object is HComp:
		#var edit = ScriptOpenEditor.new()
		#edit._script = object.get_script()
		#add_property_editor("None", edit,true,"打开脚本")
	if object is Node:
		pass
		#var edit = NodeTagEditor.new()
		#edit.plugin = self
		#if op_node ==object:
			#edit.is_folded = is_folded
		#op_node = object
		#add_property_editor("NodeTagEditor", edit,true,"Tags")
